#!/bin/bash
function file_test()
{
   echo start >> outshw.txt;
   for((i=0;i< `expr $1 + 0`;i++));
    do
     echo `date` >> outshw.txt;
     sleep $2
    done
    echo end >> outshw.txt;
}

file_test $1 $2;
